//ShoveGun as part of the GoodKarma package
//Build 1 Beta 4.5 Release
//By: Jonathan Zepp
//A more complicated way to show off GoodKarma, playing in a
//room full of GK actors, makes for a wicked deathmatch

class TelekGun extends SniperRifle ;

var float counter;

simulated event StopFire(int Mode){
    if (Mode == 0) log("button released");
    super.StopFire(Mode);
}

simulated event WeaponTick(float DeltaTime) {

    if(FireMode[0].IsFiring()) {
       counter+=DeltaTime;
       //Instigator.ClientMessage("telek gun firing");


       if(counter > 0.2) {
          EnyaraPlayerController(Instigator.Controller).useMana(1);
          counter=0;
       }


    }

    super.WeaponTick(DeltaTime);

}


defaultproperties
{
    ItemName="Telekenesis"
    Description="The Shove Gun is a shield gun modified to do minimal damage, but maximum force of impact with the promary fire."
    FireModeClass(0)=class'bblock.TelekFire'
    InventoryGroup=1
    bCanThrow=false
}
